package top.chmin.project.cloud.common.menu.auto;


import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RestController;
import top.chmin.project.cloud.common.entity.Page;

/**
 * chmin
 * 2023-12-22 21:17:33
 * cloud-builder
 */
@RestController
public class MenuController implements
        MenuSave,
        MenuUpdateById,
        MenuDeleteById,
        MenuSelectById,
        MenuSelectPage {

    @Resource
    MenuService service;

    @Override
    public int save(MenuSave.Param param) {
        return service.save(param);
    }

    @Override
    public int updateById(MenuUpdateById.Param param) {
        return service.updateById(param);
    }

    @Override
    public int deleteById(MenuDeleteById.Param param) {
        return service.deleteById(param);
    }

    @Override
    public MenuSelectById.Result selectById(MenuSelectById.Param param) {
        return service.selectById(param);
    }

    @Override
    public Page<MenuSelectPage.Result> selectPage(MenuSelectPage.Param param) {
        return service.selectPage(param);
    }
}
